package com.alibaba.mapper;


import com.alibaba.bean.FollowInterface;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface FollowInterfaceMapper {
    @Insert(value = "insert into follow(userId,fansId) values(#{toUserId},#{userId})")
    int insert(int toUserId,int userId);
    @Delete(value = "delete from follow where userId=#{toUserId} and fansId=#{userId}")
    int delete(int toUserId,int userId);
}
